package com.zd.bms.bean.vo;

import com.zd.common.bean.model.BmsRole;
import com.zd.common.bean.model.BmsUser;
import com.zd.common.common.utils.DateTimeUtil;

/**
 * 全部用户信息
 * 
 * @author lishi
 * @date 2018年5月8日 上午10:28:06
 */
public class AllInfoUserVo extends BmsUser {
	private BmsRole bmsRole;

	public BmsRole getBmsRole() {
		return bmsRole;
	}

	public void setBmsRole(BmsRole bmsRole) {
		this.bmsRole = bmsRole;
	}
	
	public String getRoleName() {
		if(bmsRole != null) {
			return bmsRole.getName();
		}
		return "";
	}
	
	public String getCreateTimeStr() throws Exception {
		if(getCreateTime() != null) {
			return DateTimeUtil.date2String(getCreateTime());
		}
		return "";
	}
}